﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Code.Services.Admins.Dto
{
    public class AdminDto
    {
        public int AdminId { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public string Avatar { get; set; }
        public DateTime? LastLoginTime { get; set; }
        public string LastLoginIP { get; set; }
        public DateTime CreateTime { get; set; } = DateTime.Now;
        
    }

    public class AdminTokenDto : AdminDto
    {
        public string Token { get; set; }
    }

    public class AdminCreateOrUpdateDto : AdminDto
    {
        public int[] intRoles { get; set; }
        /// <summary>
        /// 1,2
        /// </summary>
        public string strRoles { get; set; }
    }
}
